#include "CCanvas.h"

DWORD WINAPI fnSolveEntry(LPVOID lpParam)
{
    CCanvas *lpCanvas;
    lpCanvas = (CCanvas*)lpParam;
    lpCanvas->m_klotski.m_fnSolve();
    return 0;
}

void fnSolve(CCanvas *lpCanvas)
{
    DWORD dwThreadID;
    CreateThread(NULL, 0, fnSolveEntry, (LPVOID)lpCanvas, 0, &dwThreadID);
}


